package com.rong.raft.rpc.protocol;

import java.io.Serializable;

public class VoteResponse implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String code;

	private String nodeId;

	private String currVoteFor;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getNodeId() {
		return nodeId;
	}

	public void setNodeId(String nodeId) {
		this.nodeId = nodeId;
	}

	public String getCurrVoteFor() {
		return currVoteFor;
	}

	public void setCurrVoteFor(String currVoteFor) {
		this.currVoteFor = currVoteFor;
	}

	@Override
	public String toString() {
		return "VoteResponse [code=" + code + ", nodeId=" + nodeId + ", currVoteFor=" + currVoteFor + "]";
	}

}
